package com.example.demo.pojo.vo;

import com.example.demo.pojo.entity.SubjectFile;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.ArrayList;
import java.util.List;

/**
 * 学科文件信息返回
 * @author fjh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SubjectFileShowVO {
    private int id;
    private String fileName;
    private String createUser;
    private int level;
    List<SubjectFileShowVO>subjectFileList=new ArrayList<>();

    public void initSubjectFile(SubjectFile subjectFile){
        this.id=subjectFile.getId();
        this.fileName=subjectFile.getFileName();
        this.level=subjectFile.getLevel();
    }
}
